﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ColdStorage.DOL
{
    [Serializable]

    
    #region Floor Attributes
    public class Floor
    {
        //Floor test sub
        double dbfloorLength;

        public double dbFloorLength
        {
            get { return dbfloorLength; }
            set { dbfloorLength = value; }
        }
        double dbfloorWidth;

        public double dbFloorWidth
        {
            get { return dbfloorWidth; }
            set { dbfloorWidth = value; }
        }
        double dbfloorAverageTemperature;

        public double dbFloorAverageTemperature
        {
            get { return dbfloorAverageTemperature; }
            set { dbfloorAverageTemperature = value; }
        }
        double dbfloorHeatTransferCoefficient = 0.21;

        public double dbFloorHeatTransferCoefficient
        {
            get { return dbfloorHeatTransferCoefficient; }
            set { dbfloorHeatTransferCoefficient = value; }
        }
    #endregion

        //Calculate Heat of Floor
        public double CalculateFloorHeat( double insideTemp)
        {
            return dbfloorHeatTransferCoefficient * dbfloorLength * dbfloorWidth * ((dbfloorAverageTemperature - insideTemp));
        }
    }
}
